package b2.player
{
	public class ObjPackage
	{
		public var objectList:Object;
		
		public function ObjPackage(packageXML:XML = null)
		{
			objectList = new Object();
			if (packageXML != null)
			{
				for (var i:int = 0; i < packageXML.object.length(); i++)
				{
					var objectIndex:int = packageXML.object[i].objectIndex;
					var basicLevel:int = packageXML.object[i].basicLevel;
					var strengthenLevel:int = packageXML.object[i].strengthenLevel;
					var objectNum:int = packageXML.object[i].objectNum;
					var tankId:int = packageXML.object[i].tankId;
					var comIndex:String = objectIndex + "_" + basicLevel + "_" + strengthenLevel + "_" + tankId;
					objectList[comIndex] = objectNum;
				}
			}
		}
	}
}